#include "Player.h"
#include <stdio.h>

PlayerChar::PlayerChar(void){
		X = 0;
		Y = 0;
		Level = 1;
		Exp = 0;
		
		Info = new Stats();
		
		Info->MaxHP = 10;
		Info->HP = 10;
		
		Info->MaxMP = 10;
		Info->MP = 10;
		
		Info->Str = 10;
		Info->Int = 10;
		Info->Dex = 10;
		
		Name = "";
		
		Gender = 0;
}
		
void PlayerChar::Draw(void){
	printf("\x1b[%i;%iH", Y, X);
	printf("@");
}

void PlayerChar::addExp(int ExpToAdd){
	Exp += ExpToAdd;
}

int PlayerChar::getTNL(){
	return (Level*Level*5+Level*5);
}

PlayerChar *Player[4] = {new PlayerChar(), new PlayerChar(), new PlayerChar(), new PlayerChar()};
